package com.yang.sso.oauth.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yang.sso.oauth.enums.UserStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 登录账户信息
 *
 * @author: lslands
 * @version: 1.0
 * @create: 2024/5/11
 * @description:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo implements Serializable {

    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 账户
     */
    private String username;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 状态
     */
    private UserStatusEnum enabled;
    /**
     * 企业ID
     */
    private Long companyId;
    /**
     * 密码
     */
    @JsonIgnore
    private String password;
    /**
     * 角色编码集
     */
    private List<String> roles;
    /**
     * 权限标识
     */
    private List<String> perms;

}
